<?php

class Zend_View_Helper_SetupEditor {

  function setupEditor($textareaId) {
    return "<script type=\"text/javascript\">
		    var editor = CKEDITOR.replace('" . $textareaId . "',
									    {
											  filebrowserBrowseUrl : '/public/media/backend/js/ckfinder/ckfinder.html',
											  filebrowserImageBrowseUrl : '/public/media/backend/js/ckfinder/ckfinder.html?type=Images',
											  filebrowserFlashBrowseUrl : '/public/media/backend/js/ckfinder/ckfinder.html?type=Flash',
											  filebrowserUploadUrl : '/public/media/backend/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
											  filebrowserImageUploadUrl : '/public/media/backend/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
											  filebrowserFlashUploadUrl : '/public/media/backend/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
											});
				  CKFinder.setupCKEditor( editor, '../' );
		    
		    </script>";
  }

}
